package tingche;

public class CarTingBean {
	private int id;
	// 车位状态
	private int stat;

	public int getStat() {
		return stat;
	}

	public void setStat(int stat) {
		this.stat = stat;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public String toString() {
		String status = "空闲";
		if (stat == 1) {
			status = "占用";
		}
		return "停车位号" + " = " + id + " 状态" + " = " + status;
	}

}
